package cn.com.joycode.nimble.admin.data.configuration;

import lombok.extern.slf4j.Slf4j;
import org.fusesource.jansi.Ansi;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.autoconfigure.domain.EntityScan;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;

import static org.fusesource.jansi.Ansi.Color.GREEN;
import static org.fusesource.jansi.Ansi.ansi;

@Slf4j
@Configuration
@ComponentScan({"cn.com.joycode.nimble.admin.data"})
@MapperScan("cn.com.joycode.nimble.admin.data")
@EntityScan({"cn.com.joycode.nimble.admin.data"})
public class NimbleAdminDataAutoConfiguration {

    public NimbleAdminDataAutoConfiguration() {
        Ansi tips = ansi().fg(GREEN).a("\n :: 数据模块自动初始化 :: \n").reset();
        System.out.println(tips);
    }
}
